import fly from '@/jslibs/dk-flyio'

// 我的数据
export const getuserData = data => fly.request(
  'mini/account/user-details',
  data,
  {
    method: 'GET',
  },
)
// 关于我们
export const getaboutDetails = data => fly.request(
  'mini/account/about-details',
  data,
  {
    method: 'GET',
  },
)
// 关于我们
export const getuserInfo = data => fly.request(
  'mini/account/user-info',
  data,
  {
    method: 'PUT',
  },
)
// 获取员工认证详情并激活员工
export const getstaffdetail = phone => fly.request(
  `/mini/account/staff-detail/${phone}`,
  {
    method: 'GET',
  },
)
// 获取员工认证详情并激活员工
export const getstaffdetail2 = data => fly.request(
  '/mini/account/staff-details',
  data,
  {
    method: 'GET',
  },
)
export const getPhoneCode = params => fly.get('/mini/common/phone/normal-send', params)
// 获取评论数
export const getUsersUnread = () => fly.get('/mini/account/users-unread')
// 评论回复通知列表
export const getUsersComment = params => fly.get('/mini/account/users-comment', params)
// 评论设为已读
export const upNoticeRead = params => fly.get(`/mini/activity/leave-notes/notice/${params}`)
// 成员列表
export const getAccountStaffs = params => fly.get('/mini/account/staffs', params)
// 删除成员
export const delAccountQuiteCompany = params => fly.post('/mini/account/quit-company', params)
// 更改行政类型
export const upAccountStaffLabel = params => fly.put('/mini/account/staff-label', params)
// 导入
export const postStaffLabel = params => fly.post('/mini/account/label/staff', params)
// 邮箱
export const getmailHtml = params => fly.get('/mini/account/send/mail/html', params)
// 记录员工健康
export const addStaffHealth = params => fly.post('/mini/account/staff/health', params)
